import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/table';

export const columns: BasicColumn[] = [
  {
    title: '会员姓名',
    dataIndex: 'userName',
    width: 120,
  },
  {
    title: '手机号',
    dataIndex: 'mobile',
    width: 120,
  },
  {
    title: '卡种名称',
    dataIndex: 'goodsName',
    width: 160,
  },
  {
    title: '会员卡号',
    dataIndex: 'vipCardNo',
    width: 180,
  },
  {
    title: '开卡日期',
    dataIndex: 'buyDate',
    width: 120,
  },
  {
    title: '开卡地',
    dataIndex: 'airportName',
    width: 120,
  },
  {
    title: '销售姓名',
    dataIndex: 'employeeName',
    width: 120,
  },
  {
    title: '权益名称',
    dataIndex: 'serverName',
    width: 180,
  },
  {
    title: '操作内容',
    dataIndex: 'optContent',
    width: 250,
  },
  {
    title: '操作人',
    dataIndex: 'optUserName',
    width: 120,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 180,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'startDate',
    label: '开始日期',
    component: 'DatePicker',
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
      format: 'YYYY-MM-DD',
    },
  },
  {
    field: 'endDate',
    label: '结束日期',
    component: 'DatePicker',
    componentProps: {
      valueFormat: 'YYYY-MM-DD',
      format: 'YYYY-MM-DD',
    },
  },
  {
    field: 'userName',
    label: '会员姓名',
    component: 'Input',
  },
  {
    field: 'mobile',
    label: '手机号',
    component: 'Input',
  },
  {
    field: 'vipCardNo',
    label: '会员卡号',
    component: 'Input',
  },
  {
    field: 'serverName',
    label: '权益名称',
    component: 'Input',
  },
  {
    field: 'optUserName',
    label: '操作人',
    component: 'Input',
  },
];
